package com.wxr.springcloud;

import com.wxr.myrule.SelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.ComponentScan;

//ribbon 和 eureka整合以后，客户端可以直接调用，不用关心IP地址
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.wxr.springcloud"})
@EnableHystrix
@ComponentScan("com.wxr.springcloud")
public class FeignDeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(FeignDeptConsumer_80.class,args);
    }
}
